import { Injectable } from '@nestjs/common';
import axios from 'axios';
import * as cheerio from 'cheerio'

@Injectable()
export class CrawlerService {
  findhoroscope() {
    axios.get('https://3g.d1xz.net/astro/Sagittarius/').then((res) => {
      const $=cheerio.load(res.data)
      console.log($('.astro-description').text())
    });
    return '查找射手座星座运势';
  }
}
